<template>
  <div class="cartItemList">
    <cart-item v-for="(item,index) in this.$store.state.cartList" :key="'cartList'+index"
               :item="item"
                @checkClick="checkClick"></cart-item>
  </div>
</template>

<script>
import CartItem from "./cartItem";

export default {
  name: "cartItemList",
  props: {
    allChecked: {
      type: Boolean
    }
  },
  components: {CartItem},
  methods: {
    checkClick(){
      this.$emit('checkClick')
    }
  },
  watch: {
    allChecked(curVal) {
      console.log("List:"+curVal);
    },
  }
}
</script>

<style scoped>

</style>